import axios from "axios";
const request = axios.create({
  baseURL: "http://localhost:3000",
  timeout: 9000,
});
class myRequest {
  get(url, params) {
    return request({
      url,
      method: "GET",
      params,
    });
  }

  post(url, data) {
    return request({
      url,
      method: "POST",
      data,
    });
  }
}

export default new myRequest();
